-module (mylists).
-export ([sum/1]).
-export ([map/2]).

sum ([A|B]) -> A + sum(B);
sum ([]) -> 0.

map (F,[A|B]) -> [F(A)|map(F,B)];
map (_,[]) -> [].